<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class Group extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'group';
    public $timestamps = false;
    protected $guarded = [];

    //获取拼团人姓名
    public function spellUser()
    {
        return $this->hasOne(UserInfo::class,'id','uid');
    }

    //获取商品
    public function spellGoods()
    {
        return $this->hasOne(Good::class,'id','pid');
    }
}
